package com.mapper;

import com.pojo.User;
import com.vo.SiteQuestUserVo;
import com.vo.UserVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
    /**
     * 2.根据用户code查询用户信息
     * @param userCode
     * @return
     */
    public User selectByUserCode(String userCode);

    /**
     * 查询所有的工人
     */
    public List<User> selectUserall(UserVo userVo);



    public List<User> selectAllUser(Integer id);

    //查询维修部的人员
    public List<User> selectUsermcB(@Param("id") Integer id, @Param("ids") Integer ids);

    public List<User> selectSiteQuestUserA(SiteQuestUserVo siteQuestUserVo);

    public List<User> selectUserByPlotId(Integer plotid);
    /***
     * 查询所有维修部的人员
     */
    public List<User> selectAllUserByPort();

    public User selectUserById(Integer id);
    /***
     * 根据姓名查询员工编号
     * @param name
     * @return
     */
    public User selectUserByName(String name);
}